package com.hsd.znsh.service;

import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

public interface BaseService {

    public <T> T get(String hql, Map<String, Object> params);

    public <T> T get(String hql, Object object);

    public <T> List<T> find(String hql, Map<String, Object> params);

    public <T> List<T> find(String hql, Object object);

    public <T> List<T> find(String hql, Map<String, Object> params, Pageable pageable);

    public <T> List<T> find(String hql, Object object, Pageable pageable);

    public long count(String hql, Object object);

    public long count(String hql, Map<String, Object> params);

}
